<?
	//hd：头文件 mp：正文
	$menu = array(
		'index'     =>array('mn'=>'首页','sm'=>''),
		'news'      =>array('mn'=>'新闻热点','sm'=>''),
		'peixun'    =>array('mn'=>'培训业务','sm'=>''),
		'zixun'     =>array('mn'=>'咨询业务','sm'=>''),
		'jiaoyu'    =>array('mn'=>'教育业务','sm'=>''),
		'case'      =>array('mn'=>'经典案例','sm'=>''),
		'customers' =>array('mn'=>'客户名单','sm'=>''),
		'about'     =>array('mn'=>'了解开智','sm'=>''),
		'contact'   =>array('mn'=>'联系我们','sm'=>''),
		);
	
	if ($_GET['hd']){
		$hd = $_GET['hd'];
	}else{
		$hd = 'index';
	}
	if ($_GET['mp'] && $_GET['mp']!= $hd){
		$mp = $hd . '-' . $_GET['mp'];
	}else{
		$mp = $hd;
	}	
	$menu[$hd]['sm'] = file_get_contents('header-' . $hd . '.html');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>北京开智管理顾问有限公司 首页</title>
<script type="text/javascript" src="js/common.js"></script>
<link href="css/Gstyle-test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="a-main-wrapper">
  <div class="a-header" id="hd"><a href="http://www.cre-idea.cn/" class="a-header-logo" title="北京开智管理顾问有限公司">开智<span></span></a>
    <div class="a-navigation <? echo($menu[$hd]['mn']); ?>">
      <ul class="a-navigation-l1">
        <li class="a-navigation-i1 a-navigation-首页"> <a class="a-navigation-a1" href="./"> <strong class="a-navigation-s1">首页</strong></a> <? echo ($menu['index']['sm']); ?></li>
        <li class="a-navigation-i1 a-navigation-新闻热点"> <a class="a-navigation-a1" href="?hd=news"> <strong class="a-navigation-s1">新闻热点</strong></a> <? echo ($menu['news']['sm']); ?> </li>
        <li class="a-navigation-i1 a-navigation-培训业务"> <a class="a-navigation-a1" href="?hd=peixun"> <strong class="a-navigation-s1">培训业务</strong></a> <? echo ($menu['peixun']['sm']); ?> </li>
        <li class="a-navigation-i1 a-navigation-咨询业务"> <a class="a-navigation-a1" href="?hd=zixun"> <strong class="a-navigation-s1">咨询业务</strong></a><? echo ($menu['zixun']['sm']); ?> </li>
        <li class="a-navigation-i1 a-navigation-教育业务"> <a class="a-navigation-a1" href="?hd=jiaoyu"> <strong class="a-navigation-s1">教育业务</strong></a><? echo ($menu['jiaoyu']['sm']); ?> </li>
        <li class="a-navigation-i1 a-navigation-经典案例"> <a class="a-navigation-a1" href="?hd=case"> <strong class="a-navigation-s1">经典案例</strong></a><? echo ($menu['case']['sm']); ?> </li>
        <li class="a-navigation-i1 a-navigation-客户名单"> <a class="a-navigation-a1" href="?hd=customers"> <strong class="a-navigation-s1">客户名单</strong></a><? echo ($menu['customers']['sm']); ?> </li>
        <li class="a-navigation-i1 a-navigation-了解开智"> <a class="a-navigation-a1" href="?hd=about"> <strong class="a-navigation-s1">了解开智</strong></a><? echo ($menu['about']['sm']); ?> </li>
        <li class="a-navigation-i1 a-navigation-联系我们 a-navigation-user"> <a class="a-navigation-a1" href="?hd=contact"> <strong class="a-navigation-s1">联系我们</strong></a><? echo ($menu['contact']['sm']); ?> </li>
      </ul>
    </div>
  </div>
  <!--==============主菜单结束=================-->
  <div id="main_page">
    <?
			switch($mp){
				case 'index': 
					require('main-'.$mp.'.php');
					break;
				case 'case': 
					require('main-'.$mp.'.php');
					break;
				case 'customers': 
					require('main-'.$mp.'.php');
					break;
				case 'index-test': 
					require('main-'.$mp.'.php');
					break;
				case 'news-test': 
					require('main-'.$mp.'.php');
					break;
				case 'news': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-banks': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-securities': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-electricity': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-automotive': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-Senior_management': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-Basic_management': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-Marketing_Sales': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-Trainer': 
					require('main-'.$mp.'.php');
					break;
				case 'peixun-new_staff': 
					require('main-'.$mp.'.php');
					break;
					
				default : require('main-'.$mp.'.html');
				
				}			
    ?>
  </div>
  <div class="a-footer">
    <p class="a-footer-copyright"> 北京开智管理顾问有限公司<br />
      Beijing CreIdea Management Consulting Co. Ltd. <br/>
      <a  target="_blank" href="http://www.miibeian.gov.cn/" title="京ICP备08007900号">京ICP备08007900号</a></p>
  </div>
</div>
</body>
</html>
